﻿using System;
using UnityEngine;

namespace Studio
{
	// Token: 0x02000481 RID: 1153
	public static class MapCommand
	{
		// Token: 0x02000482 RID: 1154
		public class EqualsInfo
		{
			// Token: 0x04001F77 RID: 8055
			public Vector3 oldValue;

			// Token: 0x04001F78 RID: 8056
			public Vector3 newValue;
		}

		// Token: 0x02000483 RID: 1155
		public class MoveEqualsCommand : ICommand
		{
			// Token: 0x06001C71 RID: 7281 RVA: 0x000B7318 File Offset: 0x000B5518
			public MoveEqualsCommand(MapCommand.EqualsInfo _changeAmountInfo)
			{
				this.changeAmountInfo = _changeAmountInfo;
			}

			// Token: 0x06001C72 RID: 7282 RVA: 0x000B7328 File Offset: 0x000B5528
			public void Do()
			{
				Singleton<Studio>.Instance.sceneInfo.caMap.pos = this.changeAmountInfo.newValue;
			}

			// Token: 0x06001C73 RID: 7283 RVA: 0x000B734C File Offset: 0x000B554C
			public void Redo()
			{
				this.Do();
			}

			// Token: 0x06001C74 RID: 7284 RVA: 0x000B7354 File Offset: 0x000B5554
			public void Undo()
			{
				Singleton<Studio>.Instance.sceneInfo.caMap.pos = this.changeAmountInfo.oldValue;
			}

			// Token: 0x04001F79 RID: 8057
			private MapCommand.EqualsInfo changeAmountInfo;
		}

		// Token: 0x02000484 RID: 1156
		public class RotationEqualsCommand : ICommand
		{
			// Token: 0x06001C75 RID: 7285 RVA: 0x000B7378 File Offset: 0x000B5578
			public RotationEqualsCommand(MapCommand.EqualsInfo _changeAmountInfo)
			{
				this.changeAmountInfo = _changeAmountInfo;
			}

			// Token: 0x06001C76 RID: 7286 RVA: 0x000B7388 File Offset: 0x000B5588
			public void Do()
			{
				Singleton<Studio>.Instance.sceneInfo.caMap.rot = this.changeAmountInfo.newValue;
			}

			// Token: 0x06001C77 RID: 7287 RVA: 0x000B73AC File Offset: 0x000B55AC
			public void Redo()
			{
				this.Do();
			}

			// Token: 0x06001C78 RID: 7288 RVA: 0x000B73B4 File Offset: 0x000B55B4
			public void Undo()
			{
				Singleton<Studio>.Instance.sceneInfo.caMap.rot = this.changeAmountInfo.oldValue;
			}

			// Token: 0x04001F7A RID: 8058
			private MapCommand.EqualsInfo changeAmountInfo;
		}
	}
}
